package com.rimi.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel("预约挂号类")
public class Appointment{

  @ApiModelProperty("医生类")
  private Doctor doctor;

  @ApiModelProperty("宠物类")
  private Pets pets;

  @ApiModelProperty("处方类")
  private Prescription prescription;

  @ApiModelProperty("挂号ID")
  private Integer appointmentId;

  @ApiModelProperty("用户ID")
  private Integer userId;

  @ApiModelProperty("宠物ID")
  private Integer petId;

  @ApiModelProperty("医生ID")
  private Integer doctorId;

  @ApiModelProperty("预约时间")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date appointmentTime;

  @ApiModelProperty("挂号费用")
  private double appointmentMoney;

  @ApiModelProperty("挂号记录用户是否可见 0：不可见 1：可见")
  private String state;

  @ApiModelProperty("用户是否就诊 0：未就诊 1：已就诊")
  private String visitStatus;
}

